import Http from '@/common/http';
import CONSTS from '@/common/consts.js'

/* 
登录
 */
export const login_api = params => Http.send('post', 'api/Users/login', params);
//获取井  日产量/日平均含水率
export const getWellHeadAnalysedData_api = params => Http.send('get', 'api/Unit/GetWellHeadAnalysedData', params);
//获取井口指定时间段内的产量信息列表
export const getWellHeadAnalysedDailyProductionLine_api = params => Http.send('get', 'api/Unit/GetWellHeadAnalysedDailyProductionLine', params);
//获取井口指定时间段内的产量信息列表
export const getWellHeadAnalysedDailyAverageWaterContentRateLine_api = params => Http.send('get', 'api/Unit/GetWellHeadAnalysedDailyAverageWaterContentRateLine', params);
//查询井场
export const getPlaceUnit_api = params => Http.send('post', 'api/Unit/getPlaceUnit', params);
//查询井口
export const getWellHead_api = params => Http.send('post', 'api/Unit/getWellHead', params);










/**
 * 获取数据字典
 */
export const getDictionary = params => Http.send('get', 'api/Oil/GetDictionary', params);

/**
 * 获取列
 */
export const getColumns = params => Http.send('get', 'api/Oil/GetColumns', params);

/**
 * 获取列
 */
export const createDataByEntity = params => Http.send('post', 'api/Oil/CreateDataByEntity', params);

export const uploadFileUrl = CONSTS.STATICHOST + "api/Oil/UploadFile"

/**
 * require qr content
 */
export const getQRData = params => Http.send('get', 'api/Oil/GetQRData', params);
// CONSTS.STATICHOST + "api/Oil/GetQRData"

export const createHisData = params => Http.send('post', 'api/Oil/CreateHisData', params);
// /api/Oil/CreateHisData